package vp.vo.vphbasedata.model;

import java.util.Calendar;

import nc.uap.lfw.core.combodata.CombItem;
import nc.uap.lfw.core.combodata.DynamicComboData;

public class VIPYearComBoxData extends DynamicComboData {
	private static final long serialVersionUID = 1L;
	protected CombItem[] createCombItems(){
		CombItem[] item = new CombItem[10];
		Calendar ca = Calendar.getInstance();
		int year = ca.get(Calendar.YEAR)-8;
		for (int i = 0; i < 10; i++) {
			item[i] = new CombItem();
			int temp= year+i;
			if(temp<10){
			item[i].setValue(""+temp+"");
			item[i].setText(""+temp+"");
			}else{
				item[i].setValue(""+temp+"");
				item[i].setText(""+temp+"");
			}
		}
		return item;
	}

}
